Optimal. Leaf size=72 \[ -\frac{\sin \left (c-\frac{d e}{f}\right ) \text{CosIntegral}\left (\frac{d e}{f}+d x\right )}{a f}-\frac{\cos \left (c-\frac{d e}{f}\right ) \text{Si}\left (\frac{d e}{f}+d x\right )}{a f}+\frac{\log (e+f x)}{a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20148, antiderivative size = 72, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {4523, 31, 3303, 3299, 3302} \[ -\frac{\sin \left (c-\frac{d e}{f}\right ) \text{CosIntegral}\left (\frac{d e}{f}+d x\right )}{a f}-\frac{\cos \left (c-\frac{d e}{f}\right ) \text{Si}\left (\frac{d e}{f}+d x\right )}{a f}+\frac{\log (e+f x)}{a f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4523
Rule 31
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{\cos ^2(c+d x)}{(e+f x) (a+a \sin (c+d x))} \, dx &=\frac{\int \frac{1}{e+f x} \, dx}{a}-\frac{\int \frac{\sin (c+d x)}{e+f x} \, dx}{a}\\ &=\frac{\log (e+f x)}{a f}-\frac{\cos \left (c-\frac{d e}{f}\right ) \int \frac{\sin \left (\frac{d e}{f}+d x\right )}{e+f x} \, dx}{a}-\frac{\sin \left (c-\frac{d e}{f}\right ) \int \frac{\cos \left (\frac{d e}{f}+d x\right )}{e+f x} \, dx}{a}\\ &=\frac{\log (e+f x)}{a f}-\frac{\text{Ci}\left (\frac{d e}{f}+d x\right ) \sin \left (c-\frac{d e}{f}\right )}{a f}-\frac{\cos \left (c-\frac{d e}{f}\right ) \text{Si}\left (\frac{d e}{f}+d x\right )}{a f}\\ \end{align*}
Mathematica [A] time = 0.275474, size = 58, normalized size = 0.81 \[ \frac{-\sin \left (c-\frac{d e}{f}\right ) \text{CosIntegral}\left (d \left (\frac{e}{f}+x\right )\right )-\cos \left (c-\frac{d e}{f}\right ) \text{Si}\left (d \left (\frac{e}{f}+x\right )\right )+\log (e+f x)}{a f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.054, size = 102, normalized size = 1.4 \begin{align*} -{\frac{1}{af}{\it Si} \left ( dx+c+{\frac{-cf+de}{f}} \right ) \cos \left ({\frac{-cf+de}{f}} \right ) }+{\frac{1}{af}{\it Ci} \left ( dx+c+{\frac{-cf+de}{f}} \right ) \sin \left ({\frac{-cf+de}{f}} \right ) }+{\frac{\ln \left ( \left ( dx+c \right ) f-cf+de \right ) }{af}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.32096, size = 220, normalized size = 3.06 \begin{align*} \frac{d{\left (i \, E_{1}\left (\frac{i \, d e + i \,{\left (d x + c\right )} f - i \, c f}{f}\right ) - i \, E_{1}\left (-\frac{i \, d e + i \,{\left (d x + c\right )} f - i \, c f}{f}\right )\right )} \cos \left (-\frac{d e - c f}{f}\right ) + d{\left (E_{1}\left (\frac{i \, d e + i \,{\left (d x + c\right )} f - i \, c f}{f}\right ) + E_{1}\left (-\frac{i \, d e + i \,{\left (d x + c\right )} f - i \, c f}{f}\right )\right )} \sin \left (-\frac{d e - c f}{f}\right ) + 2 \, d \log \left (d e +{\left (d x + c\right )} f - c f\right )}{2 \, a d f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.73619, size = 230, normalized size = 3.19 \begin{align*} -\frac{{\left (\operatorname{Ci}\left (\frac{d f x + d e}{f}\right ) + \operatorname{Ci}\left (-\frac{d f x + d e}{f}\right )\right )} \sin \left (-\frac{d e - c f}{f}\right ) + 2 \, \cos \left (-\frac{d e - c f}{f}\right ) \operatorname{Si}\left (\frac{d f x + d e}{f}\right ) - 2 \, \log \left (f x + e\right )}{2 \, a f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.3586, size = 967, normalized size = 13.43 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]